package cn.zwx.member.svc.domain.convert.exception;

import cn.zwx.base.exception.BizWrapException;
import cn.zwx.member.svc.domain.enums.MemberBizCodeEnum;

/**
 * @author zhangwenxue
 */
public class ExceptionWrap {

    public static BizWrapException wrap(MemberBizCodeEnum bizCodeEnum) {
        return new BizWrapException(bizCodeEnum.getCode(),bizCodeEnum.getMsg());
    }
}
